package com.rgs.se.singleton;

import java.util.Objects;

/**
 * @author Ren Gaoshuai
 * @ClassName TestSingleton3
 * @Description 懒汉式 线程不安全的
 * @date 2021-09-02 9:45
 **/
public class TestSingleton3 {

    private static TestSingleton3 instance;

    public static TestSingleton3 getInstance(){
        if (Objects.isNull(instance)){
            instance = new TestSingleton3();
        }
        return instance;
    }
}
